package com.wcm.system.repository.shehuikexueyuantushu;

import com.wcm.system.model.difangzhi.CmsChannelEntity;
import com.wcm.system.model.shehuikexueyuantushu.HtMenuEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;


public interface SChannelRepository extends JpaRepository<HtMenuEntity,Integer> {
      @Query("select c from HtMenuEntity c where c.parentId = ?1")
      List<HtMenuEntity > selectByParent(int word);
      @Query("select c from HtMenuEntity c where c.parentId = ?1 and c.className = ?2")
      List<CmsChannelEntity > selectByParent(int word, String condition);

}
